.class public final Lnbisdk/di;
.super Lnbisdk/ia;


# instance fields
.field private bS:Lcom/nbi/location/LocationListener;

.field private fc:Z


# direct methods
.method public constructor <init>(Lcom/nbi/common/NBIContext;Lcom/nbi/location/LocationListener;)V
    .locals 2

    invoke-direct {p0, p1, p2}, Lnbisdk/ia;-><init>(Lcom/nbi/common/NBIContext;Lcom/nbi/location/LocationListener;)V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lnbisdk/di;->fc:Z

    new-instance v0, Lnbisdk/ai;

    invoke-direct {v0, p0}, Lnbisdk/ai;-><init>(Lnbisdk/di;)V

    iput-object v0, p0, Lnbisdk/di;->bS:Lcom/nbi/location/LocationListener;

    invoke-super {p0}, Lnbisdk/ia;->jp()I

    move-result v0

    int-to-long v0, v0

    iput-wide v0, p0, Lnbisdk/di;->sv:J

    return-void
.end method

.method static synthetic a(Lnbisdk/di;)Z
    .locals 1

    iget-boolean v0, p0, Lnbisdk/di;->fc:Z

    return v0
.end method

.method static synthetic a(Lnbisdk/di;Z)Z
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lnbisdk/di;->fc:Z

    return v0
.end method

.method private aU()Z
    .locals 2

    :try_start_0
    iget-object v0, p0, Lnbisdk/di;->ca:Lcom/nbi/common/NBIContext;

    iget-object v1, p0, Lnbisdk/di;->bS:Lcom/nbi/location/LocationListener;

    invoke-static {v0, v1}, Lnbisdk/bd;->a(Lcom/nbi/common/NBIContext;Lcom/nbi/location/LocationListener;)Lnbisdk/gn;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/di;->sn:Lnbisdk/gn;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :catch_0
    move-exception v0

    const/4 v0, 0x0

    goto :goto_0
.end method


# virtual methods
.method public final aS()Z
    .locals 3

    const/4 v1, 0x1

    const/4 v2, 0x0

    iput-boolean v2, p0, Lnbisdk/di;->sr:Z

    invoke-direct {p0}, Lnbisdk/di;->aU()Z

    move-result v0

    if-eq v0, v1, :cond_0

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lnbisdk/di;->ca:Lcom/nbi/common/NBIContext;

    invoke-static {v0}, Lnbisdk/bd;->d(Lcom/nbi/common/NBIContext;)Lnbisdk/cj;

    move-result-object v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lnbisdk/di;->sn:Lnbisdk/gn;

    invoke-interface {v0}, Lnbisdk/gn;->bl()Z

    move-result v0

    :goto_1
    if-nez v0, :cond_2

    iget-object v0, p0, Lnbisdk/di;->el:Lcom/nbi/location/LocationListener;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lnbisdk/di;->el:Lcom/nbi/location/LocationListener;

    const/16 v1, 0x2347

    invoke-interface {v0, v1}, Lcom/nbi/location/LocationListener;->onLocationError(I)V

    :cond_1
    move v0, v2

    goto :goto_0

    :cond_2
    move v0, v1

    goto :goto_0

    :cond_3
    move v0, v2

    goto :goto_1
.end method
